package com.lyj.cloud.security;

import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

import java.util.Collection;

/**
 * Customer Defined UserDetails
 * 
 * @author sunshine
 * 
 */
public class CustomUserDetails extends User {

    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String id;
    private String name;
    public CustomUserDetails(String username, String password, Collection<? extends GrantedAuthority> authorities){
        super(username,password,authorities);
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
